package cn.com.mayue.guava;

import com.google.common.primitives.Ints;

import java.util.Comparator;

/**
 * Created by mayue on 2016/12/22.
 * person比较器 实现 guava Comparator 接口
 */
public class PersonComparator implements Comparator<Person> {
    public int compare(Person one, Person two) {
        return Ints.compare(one.getAge(), two.getAge());
    }
}
